<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#A" data-toggle="tab">登录配置</a></li>
        <li><a href="#B" data-toggle="tab">支付配置</a></li>
        <li><a href="#C" data-toggle="tab">直播配置</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('setting/configpriPost')}" method="post">
        <fieldset>
            <div class="tabbable">
                <div class="tab-content">
                    <div class="tab-pane active" id="A">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">登录方式</label>
                            <div class="col-md-6 col-sm-10">
                                <php>
									$QQ='QQ';
									$wx='wx';
								</php>
								<label class="checkbox-inline"><input type="checkbox" value="QQ" name="login_type[]" <in value="$config['login_type']" name="QQ">checked="checked"</in>>QQ</label>
								<label class="checkbox-inline"><input type="checkbox" value="wx" name="login_type[]" <in value="$config['login_type']" name="wx">checked="checked"</in>>微信</label>
								
                            </div>
                        </div>
                        
                        <div class="form-group" style="display:none;">
                            <label class="col-sm-2 control-label">分享方式</label>
                            <div class="col-md-6 col-sm-10">
                                <php>
									$share_qq='qq';
									$share_qzone='qzone';
									$share_wx='wx';
									$share_wchat='wchat';
								</php>
								<label class="checkbox-inline"><input type="checkbox" value="qq" name="share_type[]" <in value="$config['share_type']" name="share_qq">checked="checked"</in>>QQ</label>
								<label class="checkbox-inline"><input type="checkbox" value="qzone" name="share_type[]" <in value="$config['share_type']" name="share_qzone">checked="checked"</in>>QQ空间</label>
								<label class="checkbox-inline"><input type="checkbox" value="wx" name="share_type[]" <in value="$config['share_type']" name="share_wx">checked="checked"</in>>微信</label>
								<label class="checkbox-inline"><input type="checkbox" value="wchat" name="share_type[]" <in value="$config['share_type']" name="share_wchat">checked="checked"</in>>微信朋友圈</label>
								
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">验证码开关</label>
                            <div class="col-md-6 col-sm-10">
                                <select class="form-control" name="options[sendcode_switch]">
                                    <option value="0">关闭</option>
                                    <option value="1" <eq name="config['sendcode_switch']" value="1">selected</eq>>开启</option>
                                </select>
                                验证码开关,关闭后不再发送真实验证码，采用默认验证码123456
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-tx_api_secretid" class="col-sm-2 control-label">腾讯云-API密钥-SecretId</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-tx_api_secretid" name="options[tx_api_secretid]" value="{$config['tx_api_secretid']|default=''}"> 腾讯云API密钥ID
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-tx_api_secretkey" class="col-sm-2 control-label">腾讯云-API密钥-SecretKey</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-tx_api_secretkey" name="options[tx_api_secretkey]" value="{$config['tx_api_secretkey']|default=''}"> 腾讯云API密钥
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-tx_sms_sdkappid" class="col-sm-2 control-label">腾讯云-短信应用SDKAppid</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-tx_sms_sdkappid" name="options[tx_sms_sdkappid]" value="{$config['tx_sms_sdkappid']|default=''}"> 腾讯云短信APPID
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-tx_sms_sign" class="col-sm-2 control-label">腾讯云-短信签名</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-tx_sms_sign" name="options[tx_sms_sign]" value="{$config['tx_sms_sign']|default=''}"> 腾讯云短信签名
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-tx_sms_tempid" class="col-sm-2 control-label">腾讯云-短信模板ID</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-tx_sms_tempid" name="options[tx_sms_tempid]" value="{$config['tx_sms_tempid']|default=''}"> 腾讯云短信模板ID
                            </div>
                        </div>
                        
                        <!-- <div class="form-group">
                            <label for="input-ccp_sid" class="col-sm-2 control-label">容联云ACCOUNT SID</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-ccp_sid" name="options[ccp_sid]" value="{$config['ccp_sid']|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-ccp_token" class="col-sm-2 control-label">容联云AUTH TOKEN</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-ccp_token" name="options[ccp_token]" value="{$config['ccp_token']|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-ccp_appid" class="col-sm-2 control-label">容联云应用APPID</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-ccp_appid" name="options[ccp_appid]" value="{$config['ccp_appid']|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-ccp_tempid" class="col-sm-2 control-label">容联云短信模板ID</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-ccp_tempid" name="options[ccp_tempid]" value="{$config['ccp_tempid']|default=''}">
                            </div>
                        </div> -->
                        
                        <div class="form-group">
                            <label for="input-wx_appid_pc" class="col-sm-2 control-label">PC-微信登录appid</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-wx_appid_pc" name="options[wx_appid_pc]" value="{$config['wx_appid_pc']|default=''}">  PC 微信登录appid（微信开放平台网页应用 APPID） 
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-wx_appsecret_pc" class="col-sm-2 control-label">PC-微信登录appsecret</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-wx_appsecret_pc" name="options[wx_appsecret_pc]" value="{$config['wx_appsecret_pc']|default=''}">  PC 微信登录appsecret（微信开放平台网页应用 AppSecret） 
                            </div>
                        </div>
                        
                        
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="B">

                        <div class="form-group">
                            <label for="input-aliapp_partner" class="col-sm-2 control-label">支付宝合作者身份ID</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-aliapp_partner" name="options[aliapp_partner]" value="{$config['aliapp_partner']|default=''}"> 
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-aliapp_seller_id" class="col-sm-2 control-label">支付宝帐号</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-aliapp_seller_id" name="options[aliapp_seller_id]" value="{$config['aliapp_seller_id']|default=''}">
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-aliapp_key" class="col-sm-2 control-label">支付宝开发者密钥</label>
                            <div class="col-md-6 col-sm-10">
                                <textarea class="form-control" id="input-aliapp_key" name="options[aliapp_key]" >{$config.aliapp_key|default=''}</textarea> 密钥使用PKCS8版本
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-wx_mchid" class="col-sm-2 control-label">微信商户号mchid</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-wx_mchid" name="options[wx_mchid]" value="{$config['wx_mchid']|default=''}"> 微信商户号mchid（微信开放平台移动应用 对应的微信商户 商户号mchid）
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-wx_key" class="col-sm-2 control-label">微信密钥key</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-wx_key" name="options[wx_key]" value="{$config['wx_key']|default=''}"> 微信密钥key（微信开放平台移动应用 对应的微信商户 密钥key）
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">PC-支付宝开关</label>
                            <div class="col-md-6 col-sm-10">
								<select class="form-control" name="options[alipc_switch]">
                                    <option value="0">关闭</option>
                                    <option value="1" <eq name="config['alipc_switch']" value="1">selected</eq>>开启</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-aliapp_check" class="col-sm-2 control-label">PC-支付宝MD5秘钥</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-aliapp_check" name="options[aliapp_check]" value="{$config['aliapp_check']|default=''}">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">PC-微信开关</label>
                            <div class="col-md-6 col-sm-10">
								<select class="form-control" name="options[wxpc_switch]">
                                    <option value="0">关闭</option>
                                    <option value="1" <eq name="config['wxpc_switch']" value="1">selected</eq>>开启</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-pc_wx_appid" class="col-sm-2 control-label">PC-支付-微信公众平台AppID</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-pc_wx_appid" name="options[pc_wx_appid]" value="{$config['pc_wx_appid']|default=''}">
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-pc_wx_appsecret" class="col-sm-2 control-label">PC-支付-微信公众平台appsecret</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-pc_wx_appsecret" name="options[pc_wx_appsecret]" value="{$config['pc_wx_appsecret']|default=''}">
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-pc_wx_mchid" class="col-sm-2 control-label">PC-微信公众号-商户号mchid</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-pc_wx_mchid" name="options[pc_wx_mchid]" value="{$config['pc_wx_mchid']|default=''}"> 微信商户号mchid（微信公众号 对应的微信商户 商户号mchid）
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="input-pc_wx_key" class="col-sm-2 control-label">PC-微信公众号-微信商户号密钥key</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-pc_wx_key" name="options[pc_wx_key]" value="{$config['pc_wx_key']|default=''}"> 微信密钥key（微信公众号 对应的微信商户 密钥key）
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="tab-pane" id="C">
                        <div class="form-group">
                            <label for="input-chatserver" class="col-sm-2 control-label">聊天服务器带端口</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-chatserver" name="options[chatserver]" value="{$config['chatserver']|default=''}">  格式：http://域名(:端口) 或者 http://IP(:端口)
                            </div>
                        </div>
                        <div <if condition="config('type') neq 0">style="display:none;"</if> >
                            <div class="form-group">
                                <label for="input-sound_appid" class="col-sm-2 control-label">声网Appid</label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" id="input-sound_appid" name="options[sound_appid]" value="{$config['sound_appid']|default=''}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="input-agora_api_id" class="col-sm-2 control-label">声网api 客户ID</label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" id="input-agora_api_id" name="options[agora_api_id]" value="{$config['agora_api_id']|default=''}">声网后台 ->右上角->RESTful API
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="input-agora_api_key" class="col-sm-2 control-label">声网api 客户证书</label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" id="input-agora_api_key" name="options[agora_api_key]" value="{$config['agora_api_key']|default=''}">声网后台 ->右上角->RESTful API
                                </div>
                            </div>

                        </div>

                        <div <if condition="config('type') neq 1">style="display:none;"</if> >
                            <div class="form-group">
                                <label class="col-sm-2 control-label">应用KEY</label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" id="input-app-key" name="options[app_key]" value="{$config['app_key']|default=''}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">应用SECRET</label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" id="input-app-secret" name="options[app_secret]" value="{$config['app_secret']|default=''}">

                                </div>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </fieldset>
    </form>

</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>
